package com.example.demo.dto;


import com.fasterxml.jackson.annotation.JsonProperty;

public class LikeRequest {
    private boolean isLiked;

    // 添加构造函数
    public LikeRequest(@JsonProperty("isLiked") boolean isLiked) {
        this.isLiked = isLiked;
    }

    public boolean isLiked() {
        return isLiked;
    }

    public void setLiked(boolean liked) {
        isLiked = liked;
    }
}
